package cn.mafangui.hotel.mapper;

import cn.mafangui.hotel.entity.Notice;
import cn.mafangui.hotel.entity.Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author ：Angular
 * @ProjectName: hotel
 * @Package: cn.mafangui.hotel.mapper
 * @InterfaceName: NoticeMapper
 * @date ：Created in 2021/4/24 12:31
 * @description：
 * @modified By：
 * @version: $
 */
@Component
public interface NoticeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Notice notice);

    int insertSelective(Notice notice);

    Notice selectByPrimaryKey(Integer orderId);

    int updateByPrimaryKeySelective(Notice record);

    int updateByPrimaryKey(Notice record);

    List<Notice> selectAll();

    List<Notice> selectByUserId(Integer userId);

    List<Notice> selectAllByUser(@Param("userId") Integer userId, @Param("orderStatus") Integer orderStatus);

    Integer getNoticeCount();
}
